package com.aiolos.myioc;

public abstract class HumanWithCar implements Human{

    protected Car car;

    //约定2：所有被依赖的Bean通过构造方法执行注入
    public HumanWithCar(Car car) {
        this.car = car;
    }

    @Override
    public abstract void goHome();
}
